package com.younion.business;

import java.util.List;
import java.util.Map;

import com.younion.common.exception.BaseException;
import com.younion.common.paginator.Paginator;
import com.younion.vo.AfficheVO;

public interface IAfficheService {
	
	/**
	 * 向数据库中插入一条记录
	 * 
	 * @param voObject
	 *            与数据库中记录对应的值对象
	 * @return type : AfficheVO 返回插入操作是否成功，操作失败返回null
	 */
	public AfficheVO save(AfficheVO voObject) throws BaseException;
	
	/**
	 * 获取记录数
	 * 
	 * @param paramMap
	 * @return
	 * @throws BaseException
	 */
	public int getCountByMap(Map paramMap) throws BaseException;

	/**
	 * 分页查找
	 * 
	 * @param paramMap
	 * @param curPage
	 * @param pageSize
	 * @return
	 * @throws Exception
	 */
	public List get(Map paramMap, Paginator paginator) throws BaseException;
	
	public AfficheVO selectAfficheById(Map paramMap) throws BaseException;
	
	public boolean updateAfficheByMap(Map paramMap) throws BaseException;
	
	public boolean deleteAfficheById(Map paramMap) throws BaseException;
	
	public boolean deleteAfficheByIds(List list) throws BaseException;
	
	public List selectWebAffiche(Map condition, Paginator paginator) throws BaseException;
	
	public List<AfficheVO> selectApiAfficheByMap(Map paramMap) throws BaseException;

}
